sql interview problem

welcome to shbcf.ru